package com.djf.eg.entity;

import java.util.Date;
import java.util.List;

public class UserInfo implements EgBaseEntityInterface {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3790360263238057564L;

    private int id;
    private String username;//帐号
    private String nickname;//姓名/昵称
    private String password; //密码;
    private Date createTime;
    private Date updateTime;
    private byte deleteStatus;//用户状态,0:创建未认证（比如没有激活，没有输入验证码等等）--等待验证的用户 , 1:正常状态,2：用户被锁定.
    private List<SysRole> roles;// 一个用户具有多个角色
//    private SysRole role;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public byte getDeleteStatus() {
		return deleteStatus;
	}
	public void setDeleteStatus(byte deleteStatus) {
		this.deleteStatus = deleteStatus;
	}
	public List<SysRole> getRoles() {
		return roles;
	}
	public void setRoles(List<SysRole> roles) {
		this.roles = roles;
	}
//	public SysRole getRole() {
//		return role;
//	}
//	public void setRole(SysRole role) {
//		this.role = role;
//	}
	
}
